<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<html>
<head>
    <title>Title</title>
</head>
<body>

<form action="#" method="post">
    <a href="/cartigy/addCartiy.html">添加分类</a><br/>
    <table border="1">
        <tr><td>编号</td><td>分类</td><td>操作</td></tr>

        <c:forEach items="${cartiys}" var="cart">
            <tr><td>${cart.id}</td>
            <td>${cart.name}</td>
            <td><a href="/cartigy/delete?id=${cart.id}">删除</a></td></tr>
        </c:forEach>
    </table>
</form>

</body>
</html>
